<template>
  <div class="Content">
    <div class="page-title">
      <con-tab v-if="curTab" :tabs="conTabs" :curTab="curTab" @activeIndex="activeIndex" />
    </div>
    <nuxt-child></nuxt-child>
  </div>
</template>

<script>

import { conTabs } from "@/consts/codesMap";



export default {

  data() {
    return {
      conTabs,
      curTab: conTabs.find(t => t.path === this.$route.path),
    };
  },
  
  methods: {
    activeIndex(item) {
      this.curTab = this.conTabs.find((t) => t.key === item.key);
      this.$router.replace(item.path)
    },
  },
  created() {

  },
};
</script>

<style lang="stylus">
.Content {
  
}
</style>